<include file="Layout/header" />

<header class="main-header">

    <!-- Logo -->
    <a href="#" class="logo">
        <!-- mini logo for sidebar mini 50x50 pixels -->
        <span class="logo-mini"><b>C</b>X</span>
        <!-- logo for regular state and mobile devices -->
        <span class="logo-lg"><b>CHENXIN</b></span>
    </a>

    <!-- Header Navbar -->
    <nav class="navbar navbar-static-top" role="navigation">
        <!-- Sidebar toggle button-->
        <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
            <span class="sr-only">切换导航</span>
        </a>
        <!-- Navbar Right Menu -->
        <div class="navbar-custom-menu">
            <ul class="nav navbar-nav">

                <!-- User Account Menu -->
                <li class="dropdown user user-menu">
                    <!-- Menu Toggle Button -->
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <!-- The user image in the navbar-->
                        <img src="<?php echo ADMIN_DIST_URL; ?>img/user2-160x160.jpg" class="user-image" alt="User Image">
                        <!-- hidden-xs hides the username on small devices so only the image appears. -->
                        <span class="hidden-xs">{$ma_name}</span>
                    </a>
                    <ul class="dropdown-menu">
                        <!-- The user image in the menu -->
                        <li class="user-header">
                            <img src="<?php echo ADMIN_DIST_URL; ?>img/user2-160x160.jpg" class="img-circle" alt="User Image">
                            <p>{$user_name}
                                <small>{$last_time}</small>
                            </p>
                        </li>
                        <!-- Menu Body -->
                        <!--<li class="user-body">-->
                            <!--<div class="col-xs-4 text-center">-->
                                <!--<a href="#">Followers</a>-->
                            <!--</div>-->
                            <!--<div class="col-xs-4 text-center">-->
                                <!--<a href="#">Sales</a>-->
                            <!--</div>-->
                            <!--<div class="col-xs-4 text-center">-->
                                <!--<a href="#">Friends</a>-->
                            <!--</div>-->
                        <!--</li>-->
                        <!-- Menu Footer-->
                        <li class="user-footer">
                            <div class="pull-left">
                                <a href="#" class="btn btn-default btn-flat">简介</a>
                            </div>
                            <div class="pull-right">
                                <a href="__MODULE__/Manager/logout" class="btn btn-default btn-flat">退出</a>
                            </div>
                        </li>
                    </ul>
                </li>
                <!-- Control Sidebar Toggle Button -->
                <li>
                    <a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
                </li>
            </ul>
        </div>
    </nav>
</header>

<aside class="main-sidebar">

    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">

        <!-- Sidebar Menu -->
        <ul class="sidebar-menu">
            <li class="header">管理员后台</li>
            <!-- Optionally, you can add icons to the links -->
            <li class="active"><a href="__MODULE__/User/show" target="right"><i class="fa fa-edit"></i><span>程序员管理</span></a></li>
            <!--<li><a href="__MODULE__/Code/show" target="right"><i class="fa fa-link"></i> <span>代码管理</span></a></li>-->
            <li class="treeview">
                <a href="#"><i class="fa fa-files-o"></i> <span>代码管理</span> <i class="fa fa-angle-left pull-right"></i></a>
                <ul class="treeview-menu">
                    <li><a href="__MODULE__/Code/newbuild" target="right">新建</a></li>
                    <li><a href="__MODULE__/Code/show" target="right">编辑管理</a></li>
                </ul>
            </li>
        </ul><!-- /.sidebar-menu -->
    </section>
    <!-- /.sidebar -->
</aside>

<include file="right" />

<include file="Layout/footer" />

